<%-- 
    Document   : listAppSpecialist
    Created on : 10 Nov, 2012, 6:35:33 PM
    Author     : sagar
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@include file="../common/script.jsp" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <%@include file="../common/title.jsp" %>
    </head>
    <body>
        <%@include file="../common/header.jsp" %>
        <%@include file="../common/menu.jsp" %>

        <div class="in_02">
            <form id="form1" method="post">
                <fieldset style="width: 60px; height: 80px">
                    <legend>Select options</legend>
                    <table class="formTable">
                        <tr>
                            <td>Specialist type:<br/><select id="specialistTypeId" name="specialistTypeId" class="userInputMedium">
                                    <option value="0">-</option>
                                    <c:forEach items="${specialistTypeList}" var="item">
                                        <option <c:if test="${specialistTypeId==item.specialistTypeId}">selected</c:if> value="${item.specialistTypeId}">
                                            ${item.specialistType}
                                        </option>
                                    </c:forEach>
                                </select>
                            </td>

                            <td><br/><input type="submit" value="Go" name="Go"></td>

                        </tr>
                    </table>
                </fieldset>
            </form>
            <form> 
                <%@include file="../common/message.jsp" %>
                <br/>
                <sec:authorize ifAnyGranted="ROLE_BF_APPSPE_ADD">
                    <span style="font-size: 15px; font-weight: bold;"><a href="../appspecialist/addAppSpecialist.htm">Add AppSpecialist</a></span>
                </sec:authorize>

                <br/><br/>&nbsp;&nbsp;&nbsp;
                <strong style="margin: 0 600px 0 0"><spring:message code="title.listAppSpecialist"/></strong>
                <br/><br/>&nbsp;&nbsp;&nbsp;
                <p style="margin-right: 10px; float: right;"><c:out value="${fn:length(filterAppSpecialist)}"/> <spring:message code="rowsFound"/></p>
                <table class="data_table" border="1px">
                    <thead>
                        <tr class="header">
                            <th  ><spring:message code="appSpecialistName"/></th>
                            <th  ><spring:message code="appSpecialistTypeId"/></th>
                            <th  ><spring:message code="appSpecialistMobile"/></th>
                            <th ><spring:message code="email"/></th>
                            <th ><spring:message code="appSpecialistHospital1"/></th>
                            <th><spring:message code="appSpecialistPhone1"/></th>
                            <th><spring:message code="appSpecialistTiming1"/></th>
                            <th><spring:message code="appSpecialistHospital2"/></th>
                            <th ><spring:message code="appSpecialistPhone2"/></th>
                            <th ><spring:message code="appSpecialistTiming2"/></th>
                            <th ><spring:message code="appSpecialistHospital3"/></th>
                            <th ><spring:message code="remarks"/></th>
                            <th ><spring:message code="geoZoneName"/></th>
                            <sec:authorize ifAnyGranted="ROLE_BF_APPSPE_EDIT">
                            <td width="2%">&nbsp;</td>
                            </sec:authorize>
                        </tr>
                    </thead>
                    <c:forEach items="${filterAppSpecialist}" var="appSpecialistItem">
                        <tr>
                            <td ><c:out value="${appSpecialistItem.NAME}"/></td>
                            <td ><c:out value="${appSpecialistItem.SPECIALIST_TYPE}"/></td>
                            <td ><c:out value="${appSpecialistItem.MOBILE}"/></td>
                            <td><c:out value="${appSpecialistItem.EMAIL}"/></td>
                            <td ><c:out value="${appSpecialistItem.HOSPITAL_1}"/></td>
                            <td ><c:out value="${appSpecialistItem.CONTACT_1}"/></td>
                            <td ><c:out value="${appSpecialistItem.TIMING_1}"/></td>
                            <td ><c:out value="${appSpecialistItem.HOSPITAL_2}"/></td>
                            <td ><c:out value="${appSpecialistItem.CONTACT_2}"/></td>
                            <td ><c:out value="${appSpecialistItem.TIMING_2}"/></td>
                            <td ><c:out value="${appSpecialistItem.HOSPITAL_3}"/></td>
                            <td ><c:out value="${appSpecialistItem.REMARKS}"/></td>
                            <td ><c:out value="${appSpecialistItem.GEOGRAPHICAL_ZONE_NAME}"/></td>
                            <%--                            <td align="center"><c:out value="${appSpecialistItem.HOSPITAL_NAME}"/></td>--%>
                            <sec:authorize ifAnyGranted="ROLE_BF_APPSPE_EDIT">
                                <td><a href="editAppSpecialist.htm?appSpecialistId=<c:out value="${appSpecialistItem.APP_SPECIALIST_ID}"/>"><img src="../images/edit.png"  width="20" height="20" style="border: none" alt="Edit" title="Edit"/></a></td>
                                    </sec:authorize>
                        </tr>
                    </c:forEach>
                </table>&nbsp;&nbsp;&nbsp;
                <c:out value="${fn:length(filterAppSpecialist)}"/> <spring:message code="rowsFound"/>
                <br/><br/>&nbsp;&nbsp;&nbsp;
                <sec:authorize ifAnyGranted="ROLE_BF_APPSPE_ADD">
                    <span style="font-size: 15px; font-weight: bold;"><a href="../appspecialist/addAppSpecialist.htm">Add AppSpecialist</a></span> 
                </sec:authorize>
            </form>
        </div>
    </body>
</html>